home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 2 / Gold Medal Software Volume 2 (Gold Medal) (1994).iso / prog / asm_0_m.arj / DFRESH.ASM < prev    next >
Assembly Source File  |  1988-06-30  |  972b  |  36 lines

  1. ; QFRESH.ASM - lengthen DRAM refresh interval for improved system performance
  2. ;
  3. ; QFRESH.COM - sets quick refresh - PCTOOLS SI reports 285%
  4. ; DFRESH.COM - resets to default refresh - PCTOOLS SI reports 260%
  5.  
  6.  
  7. INTERVAL_LOW    EQU    0dh    ; start testing at 30h, BIOS uses 0Dh
  8. INTERVAL_HIGH    EQU    00h    ; start testing at 00h, BIOS uses 00h
  9.  
  10. ; Peter's AT, Michael's AT optimum 0076h
  11.  
  12. CODE    SEGMENT
  13.     ASSUME    CS:CODE, DS:CODE
  14.     ORG    100h
  15. start:
  16.     jmp    set_timer
  17. msg    db    "Normal memory refresh active$", 0Dh, 0Ah
  18.  
  19. set_timer:
  20.  
  21.     mov    al, 74h            ; Timer #1, low byte then high byte
  22.     out    43h, al            ; send command
  23.     mov    al, INTERVAL_LOW    ; load low byte of interval
  24.     out    41h, al            ; send to timer
  25.     mov    al, INTERVAL_HIGH    ; load high byte of interval
  26.     out    41h, al            ; send to timer
  27.     mov    dx, OFFSET msg        ; load pointer to msg
  28.     mov    ah, 09h            ; DOS display string
  29.     int    21h            ; call DOS
  30.     mov    ax, 4C00h        ; DOS exit, ERRORLEVEL=0
  31.     int    21h            ; call DOS
  32.  
  33. CODE    ENDS
  34.     END    start
  35. 
  36.